local isCh = locale == "zh" or locale == "zhr" or locale == "zht"
-- 名称
name = isCh and "食趣" or "Taste Fun"
-- 描述
description = [[
    添加了许多看起来很好吃的料理
    ]]
-- 作者
author = ""
-- 版本
version = "1.7.3.4"
-- klei官方论坛地址，为空则默认是工坊的地址
forumthread = ""
-- modicon
icon_atlas = "modicon.xml"
icon = "modicon.tex"
-- 服务器标签
server_filter_tags = { "TasteFun", "食趣" }
-- dst兼容
dst_compatible = true
-- 是否是客户端mod
client_only_mod = false
-- 是否是所有客户端都需要安装
all_clients_require_mod = true
-- 饥荒api版本，固定填10
api_version = 10
-- 优先级，值越大越先加载 默认0
priority = -100

-- 配置项大标题，该函数受勋章模组代码启发，视觉上直观很多
local function Headline(name)
    return
    {
        name = name,
        label = name,
        options = { { description = "", data = false }, },
        default = false,
    }
end

-- mod的配置项，后面介绍
configuration_options = isCh and
    {
        Headline("基础设置"),
        {
            name = "languages", -- 配置项名换，在modmain.lua里获取配置值时要用到
            label = "语言/languages",
            hover = "选择你的语言/Choose your language", -- 鼠标移到配置项上时所显示的信息
            options = {
                { -- 配置项目可选项
                    description = "简体中文", -- 可选项上显示的内容
                    hover = "简体中文/Simplified Chinese", -- 鼠标移动到可选项上显示的信息
                    data = 'Chinese' -- 可选项选中时的值，在modmain.lua里获取到的值就是这个数据，类型可以为整形，布尔，浮点，字符串
                },
                {
                    description = "English",
                    hover = "English",
                    data = 'English'
                }
            },
            default = 'Chinese' -- 默认值，与可选项里的值匹配作为默认值
        },
        Headline("杂项设置"),
        {
            name = "tf_keep_fresh",
            label = "模组容器保鲜倍率",
            hover = "自定义模组容器保鲜倍率",
            options = {
                {
                    description = "2倍",
                    hover = "同原版冰箱2倍保鲜",
                    data = 0.5
                },
                {
                    description = "4倍",
                    hover = "同原版盐盒4倍保鲜",
                    data = 0.25
                },
                {
                    description = "10倍",
                    hover = "10倍保鲜",
                    data = 0.1
                },
                {
                    description = "永鲜",
                    hover = "永久保鲜",
                    data = 0
                },
                {
                    description = "反鲜",
                    hover = "不科学之举，但是爽！",
                    data = -1
                },
            },
            default = -1
        },
        {
            name = "tf_containers_num",
            label = "模组容器格子数量",
            hover = "自定义模组容器格子数量",
            options = {
                {
                    description = "4x4和5x5",
                    hover = "疾旋鼬冰箱4x4,冰柜5x5",
                    data = "more"
                },
                {
                    description = "均3x3",
                    hover = "疾旋鼬冰箱和冰柜均为3x3",
                    data = "less"
                },
            },
            default = "more"
        },
        {
            name = "tf_cook",
            label = "模组料理烹饪设定",
            hover = "模组专属料理可以用哪些厨具烹饪",
            options = {
                {
                    description = "所有厨具",
                    hover = "普通烹饪锅|便携式烹饪锅|远古窑",
                    data = "all"
                },
                {
                    description = "仅厨师锅",
                    hover = "仅厨师沃利的便携式烹饪锅烹饪",
                    data = "portablecookpot"
                },
            },
            default = "all"
        },
        {
            name = "tf_spices",
            label = "模组调味是否开启",
            hover = "模组专属调味是否开启",
            options = {
                {
                    description = "开启",
                    hover = "开启",
                    data = "Yes"
                },
                {
                    description = "关闭",
                    hover = "关闭",
                    data = "No"
                },
            },
            default = "Yes"
        },
        {
            name = "tf_box",
            label = "模组饭盒可否制作",
            hover = "模组道具饭盒可否制作",
            options = {
                {
                    description = "可以",
                    hover = "可以",
                    data = "Yes"
                },
                {
                    description = "不可以",
                    hover = "不可以",
                    data = "No"
                },
            },
            default = "Yes"
        },
        {
            name = "tf_cookpot",
            label = "火锅灶台加强",
            hover = "可否生成调味料理&&扣除能力勋章mod厨师和烹调勋章耐久",
            options = {
                {
                    description = "是",
                    hover = "是",
                    data = "Yes"
                },
                {
                    description = "否",
                    hover = "否",
                    data = "No"
                },
            },
            default = "Yes"
        },
    }
    or
    {
        Headline("Basic Settings"),
        {
            name = "languages",
            label = "Languages",
            hover = "Choose your language",
            options = {
                {
                    description = "Simplified Chinese",
                    hover = "简体中文",
                    data = 'Chinese'
                },
                {
                    description = "English",
                    hover = "English",
                    data = 'English'
                }
            },
            default = 'English'
        },
        Headline("Miscellaneous Settings"),
        {
            name = "tf_keep_fresh",
            label = "Mod container freshness multiplier",
            hover = "Customize the freshness multiplier of the mod container",
            options = {
                {
                    description = "2x",
                    hover = "Same as the original icebox 2x freshness",
                    data = 0.5
                },
                {
                    description = "4x",
                    hover = "4x freshness of the original salt box",
                    data = 0.25
                },
                {
                    description = "10x",
                    hover = "10x freshness",
                    data = 0.1
                },
                {
                    description = "Forever",
                    hover = "Forever freshness",
                    data = 0
                },
                {
                    description = "Reverse",
                    hover = "Unscientific, but cool!",
                    data = -1
                },
            },
            default = -1
        },
        {
            name = "tf_containers_num",
            label = "Module Container Slot Number",
            hover = "Customize the number of slots in module containers",
            options = {
                {
                    description = "4x4 and 5x5",
                    hover = "Chillet Icebox 4x4, Freezer 5x5",
                    data = "more"
                },
                {
                    description = "Both 3x3",
                    hover = "Both Chillet Icebox and Freezer are 3x3",
                    data = "less"
                },
            },
            default = "more"
        },
        {
            name = "tf_cook",
            label = "Mod cuisine cooking settings",
            hover = "Which utensils can be used to cook mod-exclusive dishes",
            options = {
                {
                    description = "All utensils",
                    hover = "Normal cooking pot|Portable cooking pot|Ancient stove",
                    data = "all"
                },
                {
                    description = "Only the chef's pot",
                    hover = "Only the chef's portable cooking pot",
                    data = "portablecookpot"
                },
            },
            default = "all"
        },
        {
            name = "tf_spices",
            label = "Is the mod seasoning enabled",
            hover = "Is the mod-exclusive seasoning enabled",
            options = {
                {
                    description = "Open",
                    hover = "Open",
                    data = "Yes"
                },
                {
                    description = "Close",
                    hover = "Close",
                    data = "No"
                },
            },
            default = "Yes"
        },
        {
            name = "tf_box",
            label = "Can the lunch box be made",
            hover = "Can the mod item lunch box be made",
            options = {
                {
                    description = "Yes",
                    hover = "Yes",
                    data = "Yes"
                },
                {
                    description = "No",
                    hover = "No",
                    data = "No"
                },
            },
            default = "Yes"
        },
        {
            name = "tf_cookpot",
            label = "Hot pot rack enhancement",
            hover = "Can generate seasoned dishes && deduct the durability of the chef and cooking medal",
            options = {
                {
                    description = "Yes",
                    hover = "Yes",
                    data = "Yes"
                },
                {
                    description = "No",
                    hover = "No",
                    data = "No"
                },
            },
            default = "Yes"
        },
    }
